#pragma once 

#include <stdio.h>
#define SIZE 4096
#define NONE_FLUSH (1 << 1)
#define LINE_FLUSH (1 << 2)
#define FULL_FLUSH (1 << 3)


typedef struct _MYFILE
{
    //char* inbuffer[SIZE];
    
    char outbuffer[SIZE];
    int pos;
    int cap;
    int fileno;
    int flush_mode;
}myfile;

myfile* myfopen(const char*pathname,const char* mode);
int myfwrite(myfile* fp,const char* s,int len);
//int myfread();
void myfclose(myfile* fp);
void myfflush(myfile* fp);
void debugPrintf(myfile* fp);



